var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
// 抽象类是事物的抽象，通常用来捕捉子类的通用特性，抽象类只能被单一继承并且可以有实现体
var Animal = /** @class */ (function () {
    function Animal() {
    }
    return Animal;
}());
var Dog = /** @class */ (function (_super) {
    __extends(Dog, _super);
    function Dog(name, age) {
        var _this = _super.call(this) || this;
        _this.name = name;
        _this.age = age;
        return _this;
    }
    Dog.prototype.runIng = function () {
        console.log("跑步");
    };
    return Dog;
}(Animal));
var res = new Dog("陶品奇", 22);
console.log(res);
res.runIng();
var TheCat = /** @class */ (function () {
    function TheCat(name, age, address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }
    TheCat.prototype.getHai = function () {
        console.log("您好");
    };
    return TheCat;
}());
var t = new TheCat("猫猫", 22, "衡阳");
console.log(t);
